﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KnowlegeAssistant
{
    public class Student
    {
        private int student_id;
        private string lname;
        private string mname;
        private string fname;
        private int record_book_number;
        private Group group;

        public Student()
        { }

        public Student(int student_id,  string lname, string mname, string fname, int record_book_number, Group group)
        {
            this.student_id = student_id;
            this.lname = lname;
            this.mname = mname;
            this.fname = fname;
            this.group = group;
            this.record_book_number = record_book_number;
        }

        public int StudentID
        {
            get { return this.student_id; }
            set { this.student_id = value; }
        }

        public int RecordBookNumber
        {
            get { return this.record_book_number; }
            set { this.record_book_number = value; }
        }

        public Group Group
        {
            get { return this.group; }
            set { this.group = value; }
        }

        public string LastName
        {
            get { return this.lname; }
            set { this.lname = value; }
        }

        public string MiddleName
        {
            get { return this.mname; }
            set { this.mname = value; }
        }

        public string FirstName
        {
            get { return this.fname; }
            set { this.fname = value; }
        }

        public string FullName
        {
            get 
            {
                return LastName + " " + FirstName + " " + MiddleName; 
            }
        }

        public string GroupName
        {
            get { return this.group.GroupName; }
        }

        public int UserID
        {
            get;
            set;
        }

        public string Username
        {
            get;
            set;
        }

        public string Password
        {
            get;
            set;
        }
    }
}
